/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-20 15:04:29
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-04-24 09:33:50
 * @FilePath: \cxl-driving-training\src\views\drivingSchoolManagement\coach\edit\formConfig.ts
 */
import { PropsFormpData } from '@/utils/interface'

export const listConfig: PropsFormpData[] = [
    [
        {
            key: 'name',
            label: '姓名：',
            placeholder: '请输入',
            required: true,
            message: '请输入姓名',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'sex',
            label: '性别：',
            placeholder: '请输入',
            required: true,
            message: '请选择性别',
            value: '',
            type: 'select',
            width: 2,
            trigger: 'blur',
            options: [],
            valid: true
        }
    ],
    [
        {
            key: 'teachAge',
            label: '教龄：',
            placeholder: '请输入',
            required: true,
            message: '请输入教龄',
            value: '',
            type: 'number',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'phone',
            label: '联系电话：',
            placeholder: '请输入',
            required: false,
            message: '请输入联系电话',
            value: '',
            type: 'number',
            width: 2,
            trigger: 'blur',
            valid: true,
            rvalidateVent: 'phone',
            rvalidateErrorMsg: '请输入正确的电话'
        }
    ],
    [
        {
            key: 'schoolId',
            label: '所属驾校：',
            placeholder: '请输入',
            required: true,
            message: '请选择所属驾校',
            value: '',
            type: 'select',
            width: 2,
            trigger: 'blur',
            options: [],
            valid: true
        }
    ],
    [
        {
            key: 'introduce',
            label: '教练介绍：',
            placeholder: '请输入',
            required: true,
            message: '请输入教练介绍',
            value: '',
            type: 'tinymce',
            width: 4,
            trigger: 'blur',
            options: [],
            valid: true
        }
    ],
    [
        {
            key: 'headPic',
            label: ' 头像：',
            required: true,
            message: '请上传头像',
            value: [],
            type: 'file',
            width: 4,
            imageCount: 1,
            videoCount: 0,
            count: [],
            tagVisible: false,
            hint: '仅支持png、jpg格式，大小不超过5M，图片尺寸 750x562',
            trigger: 'blur',
            valid: true,
            dirType: 'coach',
            sizeRatio: [10, 7.5]
        }
    ]
]
